Skip to main content

Get extrema

Finds extreme pixel values in the image.

🖼️ Image options and parameters of getExtrema function

getExtrema, as the name suggests, finds extreme intensity values of the image. If user looks for minimum values it finds the darkest points, when maximum - the brightest.

The principle is straight-forward: the function iterates through each point and compares values around it. If all the values around point in question is smaller then the point is considered a minimum. Same algorithm for maximum values.

info

By choosing different algorithm option you can change the size of the neighboring area where the extrema is search.

tip

You can add a mask as an option to specify locations where to look for extrema.

MinimumMaximum
MinimumMaximum

Kinds of images compatible with algorithm

Image propertyWhat it meansPossible values
bitDepthnumber of bits per channel[8,16]
componentsnumber of componentsany
alphais alpha channel allowedtrue

Parameters and default values

  • image

  • options

Options

PropertyRequiredDefault value
kindno'maximum'
maskno-
algorithmnostar
maxEqualsno2